
<form id="form_edit"><input type="hidden" name="id" value="{[$smarty.request.id]}" />
<table>
	<tr>
		<td width="20%" align="right">项目编号：</td>
		<td width="30%"><input type="text" name="code" id="code" size="12" value="{[$result.code]}"></td>
		<td width="20%" align="right"></td>
		<td width="30%"></td>
	</tr>
	<tr>
		<td align="right">产品套数：</td>
		<td><input type="text" name="num" id="num" size="12" value="{[$result.num]}"></td>
		<td align="right">分类：</td>
		<td><select name='category'>
			{[html_options options=$category_option selected=$result.category]}
		</select></td>
	</tr>
	<tr>
		<td align="right">金额：</td>
		<td colspan="3"><input type="text" name="amount" id="amount" value="{[$result.amount]}" size="12"> <select
			name='currency' id='currency'>
			{[html_options options=$currency_option selected=$result.currency]}
		</select> <label id="label_amount"></label></td>
	</tr>
	<tr>
		<td align="right">要求日期：</td>
		<td><input type="text" name="date" id="date" value="{[$result.date]}" size="12"></td>
		<td align="right">紧急程度：</td>
		<td><select name='urgent'>
			{[html_options options=$urgent_option selected=$result.urgent]}
		</select></td>
	</tr>
	<tr>
		<td align="right">备注：</td>
		<td colspan="3"><textarea rows="3" name="content" cols="55">{[$result.content]}</textarea></td>
	</tr>
</table>
</form>

<div style="margin-top: 10px; margin-bottom: 5px; width: 740px; float: left;">
<div id="myGrid" style="width:100%;height:160px;"></div>
</div>
<table border="0">
	<tr>
		<td width="330" align="right">合计：</td>
		<td width="80"><div id="amount_t"></div></td>
		<td width="140"></td>
		<td></td>
	</tr>
</table>

<script type='text/javascript'>
var a = $("#amount").val();
var b = $("#currency").find("option:selected").text();

Currency.upper(a, b, "#label_amount");

var data = {[$result.item]};

var type_json = {[$type]};
var currency_json = {[$currency]};

var currency = '{[$result.currency]}';
var exchange = {[$result.exchange]};
</script>

<script type="text/javascript" src="js/customer/quote/columns_edit.js?r={[$smarty.now]}"></script>
<script type="text/javascript" src="js/customer/quote/item.js?r={[$smarty.now]}"></script>
